import React,{Component} from 'react';
import { View, Text, StyleSheet, Dimensions, Image } from 'react-native';


class Swiper extends Component{
    render() {
        return (
            <View style={styles.swiper}>
                <Image source={require('../../images/flashbg.jpg')} style={styles.swiperbg}></Image>
                <View>

                </View>
            </View>
        )
    }
}

// 获得屏幕宽度
let swidth = Dimensions.get('window').width;

let styles = StyleSheet.create({
    swiper:{
        width:'100%',
        height:swidth/3*1.3,
    },
    swiperbg:{
        width:'100%',
        height:swidth/3*1.3,
        resizeMode:'cover',
        opacity:0.5,
    }
})


export default Swiper;

